Stabilize is_symlink() for Metadata and Path - #89677
Conversation
commented
Oct 8, 2021
|
r? @kennytm (rust-highfive has picked a reviewer for you, use r? to override) |
commented
Oct 9, 2021
|
@rfcbot merge |
|
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
Its accurate provided this PR lands before sometime in October 21st. |
commented
Oct 9, 2021
|
Shouldn't this return |
commented
Oct 10, 2021
I don't think it should. There are Personally, I think it would be inconvenient to return For now it works well playground |
commented
Oct 10, 2021
|
I personally think that The question is will we deprecate
|
commented
Oct 10, 2021
|
I agree that on Metadata we can just return bool. On Path, I think we should return a result. |
|
@joshtriplett, Wouldn't it be illogical to have I see 3 ways to solve this:
|
commented
Oct 11, 2021
It's only inconvenient if you intend to write dubious code that silently ignores possibly serious issue. Rust is generally designed to not ignore errors.
If you can't use Given that it'd be strange that there are methods with |
commented
Oct 11, 2021
|
@Kixunil I agree with you. So we change |
commented
Oct 11, 2021
|
Does |
commented
Oct 11, 2021
commented
Oct 11, 2021
|
My personal opinion is that we should either stabilize |
|
I think I'm in agreement with @nagisa and @maxwase. I don't believe it would be a good idea to add a Result returning function here to Path directly. All of the related methods on That said, while all of the other methods on |
commented
Oct 12, 2021
|
I do personally feel that we should have try versions of these methods, but that doesn't need to be a blocker here. @rfcbot resolved should-return-result |
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
commented
Oct 22, 2021
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
commented
Oct 30, 2021
|
@bors r+ |
commented
Oct 30, 2021
|
📌 Commit 3e0360f has been approved by |
commented
Dec 6, 2021
|
I don't fully grasp the state of this feature; isn't it available as of 1.57? I'm getting an error indicating that it's unstable: |
commented
Dec 6, 2021
|
If you look at the sidebar you should see a "milestone" tag. This says it'll be stable in 1.58. |
commented
Dec 6, 2021
|
Ah, that completely slipped past me, thanks! |
commented
Dec 6, 2021
|
No worries. It's easy to miss if you don't know to look for it. |
commented
Dec 7, 2021
I don't understand this too. Stable attribute is 1.57 in master, but milestone is 1.58 here. Also this PR was not mentioned in release list |
commented
Dec 7, 2021
|
it means the |
commented
Dec 7, 2021
Should I replace it in new PR? |
commented
Dec 9, 2021
|
yes |
I'm not fully sure about
sinceversion, correct me if I'm wrongNeeds update after stabilization: cargo-test-support
Linked issue: #85748